﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_faultAlarm2", DisableSyncStructure = true)]
	public partial class TFaultAlarm2 {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(Name = "alarm_state")]
		public int? AlarmState { get; set; }

		[JsonProperty, Column(Name = "battery")]
		public int? Battery { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "ct_ad_0")]
		public int? CtAd0 { get; set; }

		[JsonProperty, Column(Name = "ct_ad_1")]
		public int? CtAd1 { get; set; }

		[JsonProperty, Column(Name = "ct_state_0")]
		public int? CtState0 { get; set; }

		[JsonProperty, Column(Name = "ct_state_1")]
		public int? CtState1 { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(Name = "sign_strength")]
		public int? SignStrength { get; set; }

		[JsonProperty, Column(Name = "sim", StringLength = -2)]
		public string Sim { get; set; }

		[JsonProperty, Column(Name = "temp")]
		public int? Temp { get; set; }

		[JsonProperty, Column(Name = "temp_state")]
		public int? TempState { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(Name = "vibration_state")]
		public int? VibrationState { get; set; }

		[JsonProperty, Column(Name = "vibrationChip_state")]
		public int? VibrationChipState { get; set; }

		[JsonProperty, Column(Name = "x_vibration")]
		public int? XVibration { get; set; }

		[JsonProperty, Column(Name = "y_vibration")]
		public int? YVibration { get; set; }

		[JsonProperty, Column(Name = "z_vibration")]
		public int? ZVibration { get; set; }

	}

}
